<!DOCTYPE html>
<html>
<head>
<title>活动列表</title>
<#include "/header.html">
	<link type="text/css" rel="stylesheet" href="${request.contextPath}/statics/plugins/jedate/jeDate-test.css">
	<link type="text/css" rel="stylesheet" href="${request.contextPath}/statics/plugins/jedate/skin/jedate.css">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<form>
				<div class="form-group col-sm-2" >
					<input type="text" class="form-control" v-model="q.title" placeholder="请输入名称"/>
				</div>
				<div class="form-group col-sm-2" >
					<select v-model="q.isDel">
						<option value="0">请选择</option>
						<option value="1">进行中</option>
						<option value="2">已删除</option>
					</select>
				</div>
				<a class="btn btn-default" @click="query">查询</a>
				<input type="reset" class="btn btn-default" @click="clean" value="清空" />
				<!--<input type="button" class="btn btn-default" @click="add" value="添加" />-->
			</form>
			<!--<#if shiro.hasPermission("sys:agent:save")>
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>-->
			<!--<#if shiro.hasPermission("sys:agent:update")>
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:user:delete")>
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>-->
		</div>
			<table id="jqGrid" ></table>

	    <div id="jqGridPager"></div>
    </div>


	<div v-show="showAdd" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label"> 活动标题:</div>
				<div class="col-sm-10">
					<input type="text" v-model=""/>
				</div>
			</div>
            <div class="form-group">
                <div class="col-sm-2 control-label"> 活动类型:</div>
                <div class="col-sm-10">

                </div>
            </div>

			<div class="form-group">
				<div class="col-sm-2 control-label">合伙人需求:</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">激活需求:</div>
				<div class="col-sm-10">
                    <input type="text" class="form-control"  />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">激活奖金:</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control"  />
                </div>
			</div>
            <div class="form-group">
                <div class="col-sm-2 control-label">活动须知:</div>
                <div class="col-sm-10">
                    <textarea  class="form-control"  ></textarea>
                </div>
            </div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="insert" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>



	<div v-show="showUpdate" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<input type="hidden" />
			<div class="form-group">
				<div class="col-sm-2 control-label">用户名</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"   />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">修改密码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">上级推荐人</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">上级推荐人手机号码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">当前等级</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" />
				</div>
			</div>


			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="update" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<!-- 选择封禁类别 -->
<div id="freezAgent" style="display: none;padding:10px;">
	<input type="hidden" id="agentId"/>
	<h3>请选择封禁类别</h3>
</div>

<script src="${request.contextPath}/statics/js/modules/active/activetype.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/plugins/jedate/jedate.js"></script>



</body>
</html>